﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WcfRoutingSample.Contracts;

namespace WcfRoutingSample.Service
{
    public class EchoService : IEchoService
    {
        #region IEchoService Members

        public string Echo(string message)
        {
            string result = string.Format("{0}, {1}", message, DateTime.Now);
            Console.WriteLine(result);
            return result;
        }

        public void EchoException(Exception exception)
        {
            throw exception;
        }

        #endregion
    }
}
